﻿using System;
using System.Collections.Generic;
using EndToEndSilverlightDemo;
using EndToEndSilverlightDemo.NorthWindServiceReference;
using Microsoft.Silverlight.Testing;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace EndtoEndSilverlightDemo.Tests
{
    public class Calculator
    {
        public int Add(int first,int second )
        {
            return first + second;
        }
    }
    [TestClass]
    public class UnitTestSample 
    {
        [TestMethod]
        public void Demonstrate_the_three_A_s()
        {
            //Arrange
            int x = 1;
            int y = 2;
            int z = 0;
            Calculator calculator = new Calculator();
           
            //Act
            z = calculator.Add(x, y);
            
            //Assert
            Assert.AreEqual(3,z);
        }
    }
}
